<!--list-->
<ul>
<?php
   foreach($rows as $key=>$row):
$devid = $row["devid"];
$phone = $row["mobile"];
   ?>
<li id="li<?=$row["mobile"]?>">
电话号码: <?=$row["mobile"]?> <a href="javascript:void(0)" onclick="show_box('<?=$row["mobile"]?>')">设置</a>  <a href="javascript:void(0)" onclick="delete_box('<?=$row["mobile"]?>','<?=$row["devid"]?>')">删除</a>
<div id='box<?=$row["mobile"]?>' class="hidden">
<fieldset>
<legend>
     <label>电话号码: <strong><?=$row["mobile"]?></strong></label>
</legend>
     <ul>
     <?php
     foreach($warnings as $wkey=>$warn):
     $winfo = $row[$wkey];
     ?>
     <li><input type="checkbox" id="chk_<?=$devid?>_<?=$phone?>_<?=$wkey?>" onclick="<?php
                                         echo "chk_warn('$devid','$phone','$wkey')";?>" <?php
if(!empty($winfo)){
echo " checked ";
}
?>>
       <label><?=$warn?></label>
       <input type="text" name="" id="the_<?=$devid?>_<?=$phone?>_<?=$wkey?>" value="<?=$winfo?>" <?php
            if(empty($winfo)){
                                                                                            echo " disabled=true ";
                                                                                            }
                                                                                            ?>>
       <input type="button" id="btn_<?=$devid?>_<?=$phone?>_<?=$wkey?>" onclick="set_warn('<?=$devid?>','<?=$phone?>','<?=$wkey?>')" value="修改" <?php
                 if(empty($winfo)){
                 echo " disabled=true ";
                 }
                 ?>
              >
     </li>
     <?php
     endforeach;
?>
</ul>
</fieldset>
</div>
</li>
<?php
   endforeach;
   ?>
</ul>
